package com.yunhoo.base.model;

import com.yunhoo.sys.util.common.LoginParam;

/**
 *
 * @author Administrator
 */
public class Person {

    private Integer id;
    private String cpsn_number;
    private String cpsn_name;
    private String pwd = "1";
    private String role = "";
    private String deptCode;
    private String deptName;
    private String id_No = "";//生份证号
    private String duty = "";//职务
    private String dyjb = "";//待遇级别
    private String bank = "";//开户银行
    private String bankAccount = "";//开户行账号
    private String gjjzh = "";//公积金账号
    private String email = "";
    private String emailPwd = "";
    private int status = 1;//状态（在职/离职 1/0）
    private String memo = "";
    private String empProp = "0";
    /*
     * 人员没有单位和年度属性，这里的单位和年度 仅作为查询数据库的参数
     */
    private String orgCode;
    private Integer iyear;
    private boolean selected = false;

    public Person() {
    }

    public Person(boolean initParamWithLoginInfo) {
        if (initParamWithLoginInfo) {
            this.cpsn_number = LoginParam.getPer().getCpsn_number();
            this.cpsn_name = LoginParam.getPer().getCpsn_name();
            this.deptCode = LoginParam.getDept().getCode();
            this.deptName = LoginParam.getDept().getName();
        }
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCpsn_number() {
        return cpsn_number;
    }

    public void setCpsn_number(String cpsn_number) {
        this.cpsn_number = cpsn_number;
    }

    public String getCpsn_name() {
        return cpsn_name;
    }

    public void setCpsn_name(String cpsn_name) {
        this.cpsn_name = cpsn_name;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public String getDeptCode() {
        return deptCode;
    }

    public void setDeptCode(String deptCode) {
        this.deptCode = deptCode;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getId_No() {
        return id_No;
    }

    public void setId_No(String id_No) {
        this.id_No = id_No;
    }

    public String getDuty() {
        return duty;
    }

    public void setDuty(String duty) {
        this.duty = duty;
    }

    public String getDyjb() {
        return dyjb;
    }

    public void setDyjb(String dyjb) {
        this.dyjb = dyjb;
    }

    public String getBank() {
        return bank;
    }

    public void setBank(String bank) {
        this.bank = bank;
    }

    public String getBankAccount() {
        return bankAccount;
    }

    public void setBankAccount(String bankAccount) {
        this.bankAccount = bankAccount;
    }

    public String getGjjzh() {
        return gjjzh;
    }

    public void setGjjzh(String gjjzh) {
        this.gjjzh = gjjzh;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getEmailPwd() {
        return emailPwd;
    }

    public void setEmailPwd(String emailPwd) {
        this.emailPwd = emailPwd;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getMemo() {
        return memo == null ? "" : memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public String getOrgCode() {
        return orgCode;
    }

    public void setOrgCode(String orgCode) {
        this.orgCode = orgCode;
    }

    public Integer getIyear() {
        return iyear;
    }

    public void setIyear(Integer iyear) {
        this.iyear = iyear;
    }

    public String getEmpProp() {
        return empProp;
    }

    public void setEmpProp(String empProp) {
        this.empProp = empProp;
    }

    public boolean isSelected() {
        return selected;
    }

    public void setSelected(boolean selected) {
        this.selected = selected;
    }
}
